package scottb.cribbage.model {

[Bindable]
public class ConfigModel {

    private static var _instance:ConfigModel = new ConfigModel();

    public static const POINTS_TO_WIN:int = 15;
    public static const PRIMARY_BUTTON_COLOR:uint = 0x006bff;
    public static const SECONDARY_BUTTON_COLOR:uint = 0x999999;
    public static const UBER_BUTTON_COLOR:uint = 0xff8d00;

    public var pointsToWin:int = POINTS_TO_WIN;
    public var primaryButtonColor:uint = PRIMARY_BUTTON_COLOR;
    public var secondaryButtonColor:uint = SECONDARY_BUTTON_COLOR;
    public var uberButtonColor:uint = UBER_BUTTON_COLOR;
    
    public function ConfigModel() {
        if(null != _instance) {
            throw new Error("Singleton class");
        }
    }
    
    public static function get instance():ConfigModel {
        return _instance;
    }
}
}
